package droidhouseclone;

import javax.swing.JFrame;
import javax.swing.UIManager;

/**
 *
 * @author Lorenzo Ferri
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception ex) {
            System.out.println("Look and Feel non impostato");
        }
        //Inizializzo tutti i componenti dell' applicazione
        StateObservable model = new StateObservable();
        ServerDiscovery disc = new ServerDiscovery(model);
        InfoView info = new InfoView(model);
        VolumeView vol = new VolumeView(model);
        PlayStopView pannello = new PlayStopView(model);
        FinestraPrincipale window = new FinestraPrincipale(model, pannello, info, vol);
        Playerthread play = new Playerthread(model);
        ServerHttp p = new ServerHttp(model);
        //Rendo visibile la finestra
        window.setVisible(true);

    }
}
